package com.co.persistence;

import java.util.ArrayList;

import org.hibernate.Session;
import org.hibernate.Transaction;

import com.co.model.bean.ObraSocial;
import com.co.model.bean.User;

public class ObraSocialDAO {

	public ObraSocialDAO() {
	}

	public void save(ObraSocial os) {
		Session session = null;
		ArrayList<User> users = null;
		try {

			PersistenceManager manager = PersistenceManager.getInstance();

			HibernateUtils u = new HibernateUtils();
			session = u.getSessionFactory().openSession();

			Transaction tx = session.beginTransaction();

			session.save(os);

			tx.commit();
			session.close();

		} catch (Exception e) {

		} finally {

		}
	}

}
